package cn.sjxy.regi.service;

import cn.sjxy.regi.pojo.Orders;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

/**
 * ClassName:OrdersService
 * Package:cn.sjxy.regi.service
 * Description:
 *
 * @Date:2022/6/26 13:49
 * @Author:SXW
 */
@Service
public interface OrdersService extends IService<Orders> {

    /**
     * 获取分页信息，展示数据
     *
     * @param page
     * @param pageSize
     * @return
     */
    Page getPage(int page, int pageSize, String number, String beginTime, String endTime);

    /**
     * 客户端展示最新订单信息
     *
     * @param page
     * @param pageSize
     * @return
     */
    Page getUserPage(int page, int pageSize);

    void submitOrder(Orders orders);
}
